/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sinemaproject;

/**
 *
 * @author admin
 */
public class command {
    static command singleton;
    
    Request req;
    
    public void takeRequest( Request req ){
        this.req = req;                
    }
    
    public void execute(){
        result res = new result();
        res.setResult(req.getValue());                        
    }
    public static command getCommand()
    {
        if( singleton == null )
        {
            singleton = new command();
        }
        return singleton;
    }
    
    
}
